Skip to content

Render metadata property forms in the web UI - #1351

Draft
ikhoon wants to merge 1 commit into
metadata-propertiesfrom
metadata-properties-webapp
Draft

Render metadata property forms in the web UI#1351
ikhoon wants to merge 1 commit into
metadata-propertiesfrom
metadata-properties-webapp

Conversation

@ikhoon

@ikhoon ikhoon commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Motivation:

#1350 added declarable metadata property schemas to the server,
but the web UI could not render input forms for them.

Modifications:

  • Fetch the declared schemas via GET /api/v1/metadataProperties and render
    input fields for them in the project, repository and app identity creation
    popovers — text inputs with pattern validation, enum selects and checkboxes,
    using the schema title, description and examples as the label, help
    text and placeholder.
  • Fall back to a raw JSON textarea when a schema declares no top-level
    properties keyword.
  • Send the entered values as the properties of the creation requests, and
    show the stored values in the app identity secret modal.
  • Use a single inline validation path (noValidate + react-hook-form) in the
    creation forms so required and pattern errors render consistently.

Result:

Motivation:

The previous commit added declarable metadata property schemas to the server,
but the web UI could not render input forms for them.

Modifications:

- Fetch the declared schemas via `GET /api/v1/metadataProperties` and render
  input fields for them in the project, repository and app identity creation
  popovers — text inputs with pattern validation, enum selects and checkboxes,
  using the schema `title`, `description` and `examples` as the label, help
  text and placeholder.
- Fall back to a raw JSON textarea when a schema declares no top-level
  `properties` keyword.
- Send the entered values as the `properties` of the creation requests, and
  show the stored values in the app identity secret modal.
- Use a single inline validation path (`noValidate` + react-hook-form) in the
  creation forms so required and pattern errors render consistently.

Result:

- Together with the previous commit, closes #1346.
- The creation dialogs prompt for the properties declared in
  `metadataProperties` and reject invalid values before submission. Nothing
  changes when the server declares nothing.
@ikhoon
ikhoon requested review from jrhee17 and minwoox as code owners August 6, 2026 04:10
@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: bf349f79-e298-4ae8-a41b-60ce2bf69d96

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ikhoon
ikhoon marked this pull request as draft August 6, 2026 05:41
@ikhoon
ikhoon removed request for jrhee17 and minwoox August 6, 2026 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant